package com.cgwx.data.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.sql.Timestamp;

@Setter
@Getter
public class UserRoomDto {

    private static final long serialVersionUID = 1L;

    private String id;

    private String account;

    private String name;

    private String entityRoom;

    private String deptId;

    private String roomType;

    private String roomId;

    private String roomName;

    private String freeAuth;

    private float usedSpace;

    private String users;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp createTime;

    @Override
    public String toString() {
        return "UserRoomDto{" +
                "id='" + id + '\'' +
                ", account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", entityRoom='" + entityRoom + '\'' +
                ", deptId='" + deptId + '\'' +
                ", roomType='" + roomType + '\'' +
                ", roomId='" + roomId + '\'' +
                ", roomName='" + roomName + '\'' +
                ", freeAuth='" + freeAuth + '\'' +
                ", usedSpace=" + usedSpace +
                ", users='" + users + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
